home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
cuj9205.zip
/
1005052A
< prev
next >
Wrap
Text File
|
1992-06-02
|
514b
|
17 lines
Listing 3. CircularBuffer and Filter structures
typedef struct {
int index, /* index for next filter output */
mask; /* masking value (length - 1) */
double *buffer;
} CircularBuffer;
typedef struct {
double *coef; /* Filter coefficients */
int order; /* Number of coefficients */
CircularBuffer *y; /* Previous outputs */
} Filter